
#import "FeedBackViewController.h"

@interface FeedBackViewController ()
@property (strong, nonatomic) IBOutlet UITextView *input;
@property (strong, nonatomic) IBOutlet UILabel *placeholder;
@property (strong, nonatomic)  NSMutableArray *imgs;

@end

@implementation FeedBackViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self initUI];
}
- (void)initUI{
    self.title = LS(@"意见反馈");
}
- (IBAction)actionForBtn:(UIButton *)sender {
    if (self.input.text.length<=0) {
        return [CCHud msg:LS(@"内容不能为空")];
    }
    [CCHud  startHud:LS(@"提交成功") stopTime:1 handle:^{
        [self backBtnAction];
    }];
}
#pragma mark - UITextViewDelegate
- (BOOL)textViewShouldBeginEditing:(UITextView *)textView{
    self.placeholder.hidden = YES;
    return YES;
}
- (void)textViewDidChange:(UITextView *)textView{
    self.placeholder.hidden = textView.text.length > 0;
}
@end
